package org.openglcharts.common;

public class Value {
	public float x;
	public float y;
	public float z = 0.0f;
	public float w = 1.0f;
	
	public Value(float x, float y)
	{
		this.x = x;
		this.y = y;
	}
	
	public Value(float x, float y, float z)
	{
		this(x, y);
		this.z = z;
	}
	
	public Value(float x, float y, float z, float w)
	{
		this(x, y, z);
		this.w = w;
	}
	
	public void normalize()
	{
		this.x /= this.w;
		this.y /= this.w;
		this.z /= this.w;
		this.w /= this.w;
	}
}